import {
    createRouter,
    createWebHashHistory
    // createWebHistory
} from 'vue-router'
import HelloWorld from "../components/HelloWorld"
import ShipinList from "../components/Shipinlist"
import ZhaoPinList from "../components/ZhaoPinList"
import UserLianXiList from "../components/YonghuList"
import ProductVideoList from "../components/ProductVideoList"
import EditZhaopin from "../components/EditZhaopin"
import AddZhaoPin from "../components/AddZhaoPin"
import editpwd from '../components/Editpwd'
import zixun from "../components/Zixun"
import pclunbo from "../components/pclunbo";
import AddZixun from "../components/AddZixun";
import FaXian from "_c/FaXian";
import About from "_c/About";
import editZixun from "_c/editZixun";
// import editZixun from "../components/editZixun";

const routes = [
    {
        path: "/",
        name: "HelloWorld",
        component: HelloWorld
    }, {
        path: "/shipinlist",
        name: "shipinlist",
        component: ShipinList
    }, {
        path: "/ZhaoPinList",
        name: "ZhaoPinList",
        component: ZhaoPinList
    }, {
        path: "/UserLianXiList",
        name: "UserLianXiList",
        component: UserLianXiList
    }, {
        path: "/ProductVideoList",
        name: "ProductVideoList",
        component: ProductVideoList
    }, {
        path: "/EditZhaopin/:id",
        name: "EditZhaopin",
        component: EditZhaopin
    }, {
        path: "/AddZhaoPin",
        name: "AddZhaoPin",
        component: AddZhaoPin
    }, {
        path: "/editpwd",
        name: "editpwd",
        component: editpwd
    }, {
        path: "/zixun",
        name: "zixun",
        component: zixun
    }, {
        path: "/pclunbo",
        name: "pclubo",
        component: pclunbo
    },
    {
        path: "/addzixun",
        name: "addzixun",
        component: AddZixun
    },
    {
        path: "/faxian",
        name: "faxian",
        component: FaXian
    },
    {
        path: "/about",
        name: "About",
        component: About
    },
    {
        path: "/editzixun",
        name: "editZixun",
        component: editZixun
    }
]

const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})
export default router
